﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WeiXinPF.Model
{
    [Table("wx_advertisement", Schema = "dbo")]
    public class advertisement
    {

        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity), Required]
        public int id { get; set; }

        [Required]
        public int wid { get; set; }

        [Required]
        public int categoryid { get; set; }

        [MaxLength(100)]
        public string title { get; set; }

        [MaxLength(200)]
        public string img_path { get; set; }

        [MaxLength(500)]
        public string context { get; set; }

        public DateTime? addtime { get; set; }

        public DateTime? begintime { get; set; }

        public DateTime? endtime { get; set; }

        [Required]
        public bool isdelete { get; set; }

        [MaxLength(200)]
        public string linkurl { get; set; }

        [MaxLength(500)]
        public string remark { get; set; }

        [Required]
        public int ordernumber { get; set; }

    }
}

